package Accessors;

import Callbacks.AbstractCallback;
import Models.FGIGantt;
import Presenter.FGIGanttPresenter;
import android.app.ProgressDialog;
import android.content.Context;

@SuppressWarnings("rawtypes")
public class FGIGanttAccessor extends AbstractAccessor<FGIGantt,FGIGanttPresenter,AbstractCallback> {
	private final String NAME = "packagingreport";
	private final String DIALOG = "Packaging Report";
	
	private final static FGIGanttPresenter presenter = new FGIGanttPresenter();
	
	//Modal dialog variable.
	ProgressDialog modalDialog = null;
	
	public FGIGanttAccessor(AbstractCallback callback){
		super(presenter, callback);
	}
	
	//Public access functions.
	public void runPackagingReport(final int brewID, final int days, final boolean runCustomDate, final Context context){
		String dialog = "Loading " + DIALOG + " List...";
		String rfString = NAME + "/" + Integer.toString(brewID) + "/" + Integer.toString(days) + "/" + Boolean.toString(runCustomDate);
		super.getAllItems(context, dialog, rfString);
	}
}
